#include "PMWindowClass.h"
#include "PMAbstractWindow.h"

namespace Proton 
{
	namespace Managers
	{
		PMWindowClass::PMWindowClass(HINSTANCE _hInstance)
		{
			hInstance = _hInstance;
			lpfnWndProc = PMAbstractWindow::msgRouter;
			lpszClassName = L"ProtonWindowClass1";

			lpszMenuName = NULL;
			cbSize = sizeof (WNDCLASSEX);
			cbClsExtra = 0;
			cbWndExtra = 0;
			style = CS_HREDRAW | CS_VREDRAW;;
			hIcon = NULL;
			hIconSm = NULL;
			hCursor = ::LoadCursor(NULL, IDC_ARROW);
			hbrBackground = NULL;
		}


		PMWindowClass::~PMWindowClass(void)
		{
		}

		bool PMWindowClass::Register()
		{
			if (::RegisterClassEx(this))
				return true;
			else
				return false;
		}
	}
}
